﻿using EventBus;
using LiteStep.Events.Handlers;
using LiteStep.Exchanges;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LiteStep.Events
{
    public class AfterDepthResponseEvent<T> : BaseEvent<IAfterDepthResponseEventHandler<T>>
		where T : IDepth
	{
		public T Depth { get; private set; }

		public AfterDepthResponseEvent(T depth)
		{
			this.Depth = depth;
		}

		public override void Dispatch(IAfterDepthResponseEventHandler<T> handler)
		{
			handler.OnAfterDepthResponseEvent(this);
		}
	}
}
